package org.jeecg.modules.car.mapper;

import java.util.List;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.entity.car.CarModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 车场车型表
 * @Author: jeecg-boot
 * @Date:   2020-09-30
 * @Version: V1.0
 */
public interface CarModelMapper extends BaseMapper<CarModel> {

    List<CarModel> findPage(Page<CarModel> page,@Param("carModel") CarModel carModel);

    @SqlParser(filter = true)
    void batchSaveOrUpdate(@Param("list") List<CarModel> carModelList);

    List<CarModel> queryCarModelByParkId(@Param("parkId") String parkId);

    List<CarModel> findByProject(@Param("projectId") String projectId);
    @SqlParser(filter = true)
    CarModel getByModelId(String modelId);
}
